//--------------------------------------------------------------------------------
// Alec G Thilenius
//
// This software is distributed under the MIT License, available at the following
// URL:
// http://www.opensource.org/licenses/mit-license.php
//--------------------------------------------------------------------------------

#include "Edge.h"
using namespace AlecThilenius;

Edge::Edge(VertexPtr head, VertexPtr tail, double weight)
{
	m_head = head;
	m_tail = tail;
	m_weight = weight;
}


Edge::~Edge(void)
{
}

VertexPtr Edge::GetTail()
{
	return m_tail;
}

VertexPtr Edge::GetHead()
{
	return m_head;
}

void Edge::SetWeight( double weight )
{
	m_weight = weight;
}

double Edge::GetWeight()
{
	return m_weight;
}